package SV_XXE_TF;
import javax.xml.transform.TransformerConfigurationException;
import javax.xml.transform.TransformerFactory;

public class Fixed {
    public class Test {
        public void test1() throws TransformerConfigurationException {
            TransformerFactory tf = TransformerFactory.newInstance();

            tf.setAttribute("http://javax.xml.XMLConstants/property/accessExternalDTD", "");
            tf.setAttribute("http://javax.xml.XMLConstants/property/accessExternalSchema", "");
            tf.setAttribute("http://javax.xml.XMLConstants/property/accessExternalStylesheet", "");

            tf.newTransformer();
        }
    }
}
